package cn.vivi.design.builder;

public abstract class Builder {

    protected Bike bike = new Bike();

    public abstract void buildFrame();

    public abstract void buildSeat();

    public abstract Bike createBike();

    public Bike build() {
        this.buildFrame();
        this.buildSeat();
        return this.createBike();
    }
}
